﻿@model EWConfigurationPrefixModel
@{
    ViewBag.Title = EWWebResources.Configuration_Prefix_PageTitle;
}

@using (Html.BeginRouteForm("EasyWeb_Configuration", FormMethod.Post, new { id = "easyweb-form-edit" }))
{
    <fieldset>
        <legend></legend>
        <div>
            @if (Model.HasStored)
            {
                @Html.DisplayForModel()
            }
            else
            {
                @Html.EditorForModel()
            }
        </div>
        <div>
            @if (Model.HasStored)
            {
                <a id="easyweb-action-back" href="@Url.RouteUrl("EasyWeb_Admin")">@EWWebResources.Button_Back</a>
            }
            else
            {
                <input id="easyweb-action-submit" type="submit" value="@EWWebResources.Button_Save" />
                <a id="easyweb-action-cancel" href="@Url.RouteUrl("EasyWeb_Admin")">@EWWebResources.Button_Cancel</a>
            }
        </div>
    </fieldset>
}

@section head {
}

@section scripts {
    <script type="text/javascript">
        (function ($) {
            $(function () {
                $("#easyweb-action-submit, #easyweb-action-cancel, #easyweb-action-back").button();
            });
        })(jQuery);
    </script>
}